//
//  CarRecTableViewCell.m
//  A段项目
//
//  Created by cmcmhjr123 on 15/7/15.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "CarRecTableViewCell.h"

@implementation CarRecTableViewCell
- (void)dealloc
{
    [_carimage1 release];
    [_carimage2 release];
    [_carimage3 release];
    [_carimage4 release];
    [_carimage5 release];
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [_label4 release];
    [_label5 release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewScrollPositionNone;
        self.carimage1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 25, 40, 40)];
        self.carimage1.tag = 1;
        self.carimage1.userInteractionEnabled = YES;

        [self.contentView addSubview:self.carimage1];
        [self.carimage1 release];
        
        self.carimage2 = [[UIImageView alloc] initWithFrame:CGRectMake(95, 25, 40, 40)];
        self.carimage2.tag =2;
        self.carimage2.userInteractionEnabled = YES;

        [self.contentView addSubview:self.carimage2];
        [self.carimage2 release];
        
        self.carimage3 = [[UIImageView alloc] initWithFrame:CGRectMake(170, 25, 40, 40)];
        self.carimage3.tag =3;
        self.carimage3.userInteractionEnabled = YES;

        [self.contentView addSubview:self.carimage3];
        [self.carimage3 release];
        
        self.carimage4 = [[UIImageView alloc] initWithFrame:CGRectMake(245, 25, 40, 40)];
        self.carimage4.userInteractionEnabled = YES;
        self.carimage4.tag = 4;
        [self.contentView addSubview:self.carimage4];
        [self.carimage4 release];

        self.carimage5 = [[UIImageView alloc] initWithFrame:CGRectMake(320, 25, 40, 40)];
        self.carimage5.tag = 5;
        self.carimage5.userInteractionEnabled = YES;

        [self.contentView addSubview:self.carimage5];
        [self.carimage5 release];
        
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(25, 70, 40, 20)];
        self.label1.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.label1];
        [self.label1 release];
        
        self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(100, 70, 40, 20)];
        self.label2.font = [UIFont systemFontOfSize:14];

        [self.contentView addSubview:self.label2];
        [self.label2 release];

        
        self.label3 = [[UILabel alloc] initWithFrame:CGRectMake(175, 70, 40, 20)];
        self.label3.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:self.label3];
        [self.label3 release];

        
        self.label4 = [[UILabel alloc] initWithFrame:CGRectMake(250, 70, 40, 20)];
        self.label4.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:self.label4];
        [self.label4 release];

        
        
        self.label5 = [[UILabel alloc] initWithFrame:CGRectMake(325, 70, 40, 20)];
        self.label5.font = [UIFont systemFontOfSize:14];
        
        [self.contentView addSubview:self.label5];
        [self.label5 release];



        self.bigCarimage1 = [[UIImageView alloc] initWithFrame:CGRectMake(20, 125, 90, 60)];
        self.bigCarimage1.userInteractionEnabled = YES;
    
        [self.contentView addSubview:self.bigCarimage1];
        [self.bigCarimage1 release];
        
        self.bigCarimage2 = [[UIImageView alloc] initWithFrame:CGRectMake(140, 125, 90, 60)];
        self.bigCarimage2.userInteractionEnabled = YES;
        [self.contentView addSubview:self.bigCarimage2];
        [self.bigCarimage2 release];
        
        self.bigCarimage3 = [[UIImageView alloc] initWithFrame:CGRectMake(260, 125, 90, 60)];
        self.bigCarimage3.userInteractionEnabled = YES;
        [self.contentView addSubview:self.bigCarimage3];
        [self.bigCarimage3 release];

        self.carlabel1 = [[UILabel alloc] initWithFrame:CGRectMake(40, 185, 60, 20)];
        self.carlabel1.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.carlabel1];
        [self.carlabel1 release];
        
        self.carlabel2 = [[UILabel alloc] initWithFrame:CGRectMake(160, 185, 60, 20)];
        self.carlabel2.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.carlabel2];
        [self.carlabel2 release];
        
        self.carlabel3 = [[UILabel alloc] initWithFrame:CGRectMake(280, 185, 60, 20)];
        self.carlabel3.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.carlabel3];
        [self.carlabel3 release];
        
        

        
        
        
        
        
        
        
        
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
